<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="entity.WebUser" %>
<%@ page import="dao.WebUserDAO"%>
 <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<base href="<%=basePath%>">
<title>合同管理系统</title>
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/layer/layer.js"></script>
<script src="js/echarts.common.min.js"></script>
</head>
<style>
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td{margin:0;padding:0;border:none;}
body{font-size:12px; font-family:Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", serifbackground:#fff;color:#2b2b2b;}
address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}
select,input,img{vertical-align:middle;}
table{border-collapse:collapse;border-spacing:0;}
table,td,tr,th{font-size:12px;}
a{text-decoration:none;cursor:pointer;}
fieldset,img{border:0;}

.main{ position:absolute;left:50%; top:50%; background:url(images/login.png) no-repeat; width:772px; height:468px; margin:-234px 0 0 -386px;}

.input-box{ position:absolute; top:110px; left:410px;color:#0952a1;}
.input-box input{ border:1px solid #7491b5; width:154px; height:28px; background-color:#f5fafe; padding-left:4px; line-height:28px;}
.input-box p{ line-height:40px;}
.input-box .check{ width:14px; height:14px; margin-left:48px;}
.input-box .record{ margin-left:6px;}
.input-box .link{ margin-top:14px; margin-left:70px;}
a{ height:28px; width:72px; display:inline-block; color:#fff; line-height:28px; text-align:center; margin-top:10px;}
.log{ background:url(images/log.png) no-repeat; margin-right:10px; margin-left:10px; }

.reset{ background:url(images/reset.png) no-repeat; color:#6d6d6d;}
.main-box .copy{ text-align:center; margin-top:8px; color:#666666;}
.text{ text-align:center; color:#fff; margin-top:398px; line-height:24px;}

.input2-box{ position:absolute; top:90px; color:#0952a1;left:40px;}
.input2-box input{ border:1px solid #7491b5; width:60px; height:28px; background-color:#f5fafe; padding-left:8px; line-height:28px;}
.input2-box p{ line-height:60px;}

</style>


<body style="background-color:#3987cf;">
<form action="usercheak" method="post">

<div class="main">
<div class="login-box">
	 <div class="input-box">
        	<p>用户名：<input type="text" name="userno" width="154px" ></p>
           	<p><span style=" padding-right:12px;">密</span>码：<input type="password" name="password" ></p>
     <div class="input2-box">
           	<p><a href="user_add.jsp"  ><input class="log" type="button" value="注册"></a><input class="log" type="submit" value="登陆"></p>
      </div>  
      </div>    
      </div>
      </div>
</form> 
<%
String errmsg=(String)session.getAttribute("errormsg");
System.out.print(errmsg);
   if(errmsg!=null){
     session.removeAttribute("errormsg");
   }
   else
   {
	   errmsg="";
   }
%>
<script>
var errmsg='<%=errmsg%>'
if(errmsg){
	layer.alert(errmsg)
}

</script>  

</body>
</html>